package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 供应商表
    */
@ApiModel(value="com-example-springbootdemo-entity-Supplier")
@TableName(value = "supplier")
public class Supplier {
    /**
     * 供应商id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="供应商id")
    private Long id;

    /**
     * 供应商名称(人名或者公司名称)
     */
    @TableField(value = "name")
    @ApiModelProperty(value="供应商名称(人名或者公司名称)")
    private String name;

    /**
     * 供应商联系号码
     */
    @TableField(value = "phone_number")
    @ApiModelProperty(value="供应商联系号码")
    private String phoneNumber;

    /**
     * 0为删除 1删除
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="0为删除 1删除")
    private Byte isDelete;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PHONE_NUMBER = "phone_number";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    /**
     * 获取供应商id
     *
     * @return id - 供应商id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置供应商id
     *
     * @param id 供应商id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取供应商名称(人名或者公司名称)
     *
     * @return name - 供应商名称(人名或者公司名称)
     */
    public String getName() {
        return name;
    }

    /**
     * 设置供应商名称(人名或者公司名称)
     *
     * @param name 供应商名称(人名或者公司名称)
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取供应商联系号码
     *
     * @return phone_number - 供应商联系号码
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * 设置供应商联系号码
     *
     * @param phoneNumber 供应商联系号码
     */
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    /**
     * 获取0为删除 1删除
     *
     * @return is_delete - 0为删除 1删除
     */
    public Byte getIsDelete() {
        return isDelete;
    }

    /**
     * 设置0为删除 1删除
     *
     * @param isDelete 0为删除 1删除
     */
    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}